<%--
  Created by IntelliJ IDEA.
  author: Jsonor
  date: 2018/4/19 14:50
  description: Description
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
  <title>修改书籍信息</title>
  <style>
    h1{
      width: 300px;
      height: 200px;
      left: 50%;
      margin-left: 40%;
      background-image: -webkit-linear-gradient(left,blue,#66ffff 10%,#cc00ff 20%,#CC00CC 30%, #CCCCFF 40%, #00FFFF 50%,#CCCCFF 60%,#CC00CC 70%,#CC00FF 80%,#66FFFF 90%,blue 100%);
      -webkit-text-fill-color: transparent;/* 将字体设置成透明色 */
      -webkit-background-clip: text;/* 裁剪背景图，使文字作为裁剪区域向外裁剪 */
      -webkit-background-size: 200% 100%;
      -webkit-animation: masked-animation 4s linear infinite;
      font-size: 35px;
    }
  </style>
</head>
<body style="background-image:  url('${pageContext.request.contextPath}/images/006.jpg')">


<h1 >修改书籍信息</h1>
<form action="${pageContext.request.contextPath}/app/book/updateBookMessage">
  <tr>
    <td><input type="hidden" name="bsid" value="${book.bsid}"></td>
  </tr>
    <table style="margin-left: 38%;margin-top: -5%">
      <tr>
        <td>Bname</td>
        <td><input type="text" name="bname" value="${book.bname}"></td>
      </tr>
      <tr>
        <td>Auto</td>
        <td><input type="text" name="auto" value="${book.auto}"></td>
      </tr>
      <tr>
        <td>Image</td>
        <td>
          <img src="${pageContext.request.contextPath}/web-image/book-image/${book.image}"width="60px" height="60px">
          <input type="file" name="image" value=""/>
        </td>
      </tr>
      <tr>
        <td>Desc</td>
        <td><input type="text" name="desc" value="${book.desc}"></td>
      </tr>
      <tr>
        <td>Category</td>
        <td name="category">
          <c:if test="${book.category eq '出国考试'}">
            <select name="category">
            <option selected="selected">出国考试</option>
            <option>小学素材</option>
            <option>基础英语</option>
            <option>人文系列</option>
            <option>国内考试</option>
          </select>
          </c:if>
          <c:if test="${book.category eq '小学素材'}">
            <select name="category">
              <option>出国考试</option>
              <option selected="selected">小学素材</option>
              <option>基础英语</option>
              <option>人文系列</option>
              <option>国内考试</option>
            </select>
          </c:if>
          <c:if test="${book.category eq '基础英语'}">
            <select name="category">
              <option>出国考试</option>
              <option>小学素材</option>
              <option selected="selected">基础英语</option>
              <option>人文系列</option>
              <option>国内考试</option>
            </select>
          </c:if>
          <c:if test="${book.category eq '人文系列'}">
            <select name="category">
              <option>出国考试</option>
              <option>小学素材</option>
              <option>基础英语</option>
              <option selected="selected">人文系列</option>
              <option>国内考试</option>
            </select>
          </c:if>
          <c:if test="${book.category eq '国内考试'}">
            <select name="category">
              <option>出国考试</option>
              <option>小学素材</option>
              <option>基础英语</option>
              <option>人文系列</option>
              <option  selected="selected">国内考试</option>
            </select>
          </c:if>

        </td>
      </tr>


      <tr>
        <td>Price</td>
        <td><input type="text" name="price" value="${book.price}"></td>
      </tr>

      <tr>
        <td>PublishingHouse</td>
        <td><input type="text" name="publishingHouse" value="${book.publishingHouse}"></td>
      </tr>
      
      <tr>
        <td >
          是否热门：
        </td>
        <td>
          <c:if test="${book['is_Hot']==1}">
            <select name="is_Hot">
            <option value="1" selected="selected">是</option>
            <option value="0">否</option>
            </select>
          </c:if>
          <c:if test="${book['is_Hot']==0}">
            <select name="is_Hot">
            <option value="1" >是</option>
            <option value="0" selected="selected">否</option>
            </select>
          </c:if>
          <
        </td>
      </tr>
      </tr>



      <tr>
        <td><input type="submit" value="提交"></td>
        <td><input type="button" value="退出"
                   onclick="javascript:window.location.href ='${pageContext.request.contextPath}/app/book/pageBean?currentPage=1'"></td>
      </tr>
    </table>
  </div>



</form>
</body>
</html>
